package com.bdqn.cloud.t330.controller;

import com.bdqn.cloud.t330.entity.Dto;
import com.bdqn.cloud.t330.entity.DtoUtil;
import com.bdqn.cloud.t330.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class IndexController {

    @Resource
    UserService userService;

    @RequestMapping(value = "/list")
    public Dto list() {
        System.out.println("8001");
        return DtoUtil.returnSuccess("成功", userService.getUserListBiz());
    }
}
